<template>
    <RowAttribute v-if="component.echoComponent==pageSetting.常量.画布组件.栅格行" :component="component" :key="new Date().getTime()"></RowAttribute>
    <ColAttribute v-else-if="component.echoComponent==pageSetting.常量.画布组件.栅格列" :component="component" :key="new Date().getTime()"></ColAttribute>
    <FormAttribute v-else-if="component.echoComponent==pageSetting.常量.画布组件.表单" :component="component" :key="new Date().getTime()"></FormAttribute>
    <TableAttribute v-else-if="component.echoComponent==pageSetting.常量.画布组件.表格" :component="component" :key="new Date().getTime()"></TableAttribute>
    <TreeAttribute v-else-if="component.echoComponent==pageSetting.常量.画布组件.树" :component="component" :key="new Date().getTime()"></TreeAttribute>
    <ButtonAttribute v-else-if="component.echoComponent==pageSetting.常量.画布组件.按钮" :component="component" :key="new Date().getTime()"></ButtonAttribute>
    <DivAttribute v-else-if="component.echoComponent==pageSetting.常量.画布组件.div" :component="component" :key="new Date().getTime()"></DivAttribute>
    <TabAttribute v-else-if="component.echoComponent==pageSetting.常量.画布组件.标签页" :component="component" :key="new Date().getTime()"></TabAttribute>
    <TabPaneAttribute v-else-if="component.echoComponent==pageSetting.常量.画布组件.页签" :component="component" :key="new Date().getTime()"></TabPaneAttribute>
    <QueryFormAttribute v-else-if="component.echoComponent==pageSetting.常量.画布组件.查询表单" :component="component" :key="new Date().getTime()"></QueryFormAttribute>
    <GridFormAttribute v-else-if="component.echoComponent==pageSetting.常量.画布组件.网格表单" :component="component" :key="new Date().getTime()"></GridFormAttribute>
    <GridFormColAttribute v-else-if="component.echoComponent==pageSetting.常量.画布组件.网格表单栅格列" :component="component" :key="new Date().getTime()"></GridFormColAttribute>
    <TagAttribute v-else-if="component.echoComponent==pageSetting.常量.画布组件.标签" :component="component" :key="new Date().getTime()"></TagAttribute>
    <LineCharAttribute v-else-if="component.echoComponent==pageSetting.常量.画布组件.折线图" :component="component" :key="new Date().getTime()"></LineCharAttribute>
    <BarCharAttribute v-else-if="component.echoComponent==pageSetting.常量.画布组件.柱状图" :component="component" :key="new Date().getTime()"></BarCharAttribute>
    <PieCharAttribute v-else-if="component.echoComponent==pageSetting.常量.画布组件.饼状图" :component="component" :key="new Date().getTime()"></PieCharAttribute>
    <MapAttribute v-else-if="component.echoComponent==pageSetting.常量.画布组件.地图" :component="component" :key="new Date().getTime()"></MapAttribute>

</template>
<script>
import pageSetting from '@/components/lt/codeGenerator/pageSetting'
import RowAttribute from './RowAttribute'
import ColAttribute from './ColAttribute'
import FormAttribute from './FormAttribute'
import TableAttribute from './TableAttribute'
import TreeAttribute from './TreeAttribute'
import ButtonAttribute from './ButtonAttribute'
import DivAttribute from './DivAttribute'
import TabAttribute from './TabAttribute'
import TabPaneAttribute from './TabPaneAttribute'
import QueryFormAttribute from './QueryFormAttribute'
import GridFormAttribute from './GridFormAttribute'
import GridFormColAttribute from './GridFormColAttribute'
import TagAttribute from './TagAttribute'
import LineCharAttribute from './LineCharAttribute'
import BarCharAttribute from './BarCharAttribute'
import PieCharAttribute from './PieCharAttribute'
import MapAttribute from './MapAttribute'

export default {
    name:'ComponentAttribute',
    components:{RowAttribute,ColAttribute,FormAttribute,TableAttribute,TreeAttribute,ButtonAttribute,
        DivAttribute,TabAttribute,TabPaneAttribute,QueryFormAttribute,GridFormAttribute,GridFormColAttribute,TagAttribute,LineCharAttribute,BarCharAttribute,PieCharAttribute,MapAttribute},
    props:{
        component:{
           type:Object,
           default:()=>{}
        },
    },
    data(){
        return{
            pageSetting
        }
    },
   
    created(){
        
    },
    methods:{
        
    }
}
</script>